package com.kgc.service.impl;

import com.kgc.dao.DeliveryInfoMapper;
import com.kgc.dao.DeliveryInfoMapper_wzl;
import com.kgc.pojo.DeliveryInfo;
import com.kgc.service.DeliveryinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeliveryinfoServiceImpl implements DeliveryinfoService {
    @Autowired
    private DeliveryInfoMapper deliveryInfoMapper;
    @Autowired
    private DeliveryInfoMapper_wzl deliveryInfoMapper_wzl;

    public int inserDeliveryInfo(DeliveryInfo deliveryInfo){
        return deliveryInfoMapper.insertSelective(deliveryInfo);
    }
    public int inserDeliveryPrice(Long carriage, double totalprice,int id){
        return deliveryInfoMapper_wzl.inserDeliveryPrice(carriage, totalprice, id);
    }
    public DeliveryInfo selectdeliveryLastInfo(){
        return deliveryInfoMapper_wzl.selectdeliveryLastInfo();
    }
}
